apiVersion: jaegertracing.io/v1
kind: Jaeger
metadata:
  name: jaeger
  namespace: istio-system
spec:
  agent:
    image: {{ jaeger_agent_repo }}:{{ jaeger_agent_tag }}
  collector:
    image: {{ jaeger_collector_repo }}:{{ jaeger_collector_tag }}
  query:
    image: {{ jaeger_query_repo }}:{{ jaeger_query_tag }}
  storage:
    dependencies:
      enabled: false
    esIndexCleaner:
      enabled: false
    options:
      es:
        index-prefix: {{ logging.elkPrefix }}
{% if logging.externalElasticsearchUrl is defined and logging.externalElasticsearchPort is defined %}
        server-urls: http://{{ logging.externalElasticsearchUrl }}:{{ logging.externalElasticsearchPort }}
{% else %}
        server-urls: http://elasticsearch-logging-data.kubesphere-logging-system.svc.cluster.local:9200
{% endif %}
    type: elasticsearch
  strategy: production
